/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pimp.organizermanager;

import java.util.*;
/**
 *
 * @author Wilku
 */
public class Rule {
    private int years;
    private int months;
    private int days;
    private Vector<Date> exceptions;

    public Rule() {
        exceptions = new Vector<Date> ();
        years = months = days = 0;
    }

    public Rule(int yearCycle, int monthCycle, int dayCycle, Vector<Date> except) {
        years = yearCycle;
        months = monthCycle;
        days = dayCycle;
        exceptions = except;
    }

    public int getDays() {
        return days;
    }

    public void setDays(int days) {
        this.days = days;
    }

    public Vector<Date> getExceptions() {
        return exceptions;
    }

    public void setExceptions(Vector<Date> exceptions) {
        this.exceptions = exceptions;
    }

    public int getMonths() {
        return months;
    }

    public void setMonths(int months) {
        this.months = months;
    }

    public int getYears() {
        return years;
    }

    public void setYears(int years) {
        this.years = years;
    }

    public boolean addException(Date date) {
        exceptions.add(date);
        return true;
    }
}
